package com.lazyfish.superdir.service;

import com.lazyfish.superdir.dao.PosterDao;
import com.lazyfish.superdir.entity.Poster;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PosterServiceImpl implements PosterService{
    @Autowired
    private PosterDao posterDao;
    @Override
    public List<Poster> getPosterList() {
        return posterDao.getPosterList();
    }

    @Override
    public Poster getPoster(int id) {
        return posterDao.getPoster(id);
    }
}
